package e.odbo.data.dsl.operation;


import java.util.ArrayList;

public class QueryOperation {
    public Page page;
    public ArrayList<Order> orders=new ArrayList<>();

    public QueryOperation(){
    }

    public QueryOperation page(int pageNum,int pageLines){
        this.page=new Page(pageNum,pageLines);
        return this;
    }

    public QueryOperation order(String fieldName){
        return this.order(fieldName,false);
    }

    public QueryOperation order(String fieldName,boolean asc){
        orders.add(new Order(fieldName,asc));
        return this;
    }


}
